class Event < ActiveRecord::Base
  
  attr_accessible :status, :title, :category, :linkto, :image

  scope :open_status, where(:status => 0)

  mount_uploader :image, ImageUploader

  scope :event, where(:category => 1)
  scope :special, where(:category => 2)

end
